<template>
  <div class="home-footer-warp">
    <img src="../../../assets/images/footerPic.png" alt="" />
    <div class="footer-content">
      <div class="content-imge">
        <img
          src="../../../assets/images/事业单位.png"
          alt=""
          @click="openLinkPOne"
        />
        <img
          src="../../../assets/images/政府网站找错.png"
          alt=""
          @click="openLinkPTwo"
        />
      </div>
      <div class="content-text">
        <div v-html="html"></div>
      </div>
    </div>
  </div>
</template>

<script>
import { getFooter } from '@/api/homeFooter'
export default {
  data() {
    return {
      html: ""
    }
  },
  created() {
    // this.init()
  },
  methods: {
    async init() {
      const { data } = await getFooter()
      this.html = data.content
    },
    openLinkPOne() {
      window.open('http://bszs.conac.cn/sitename?method=show&id=0B55E885EDD56310E053022819ACE3DA')
    },
    openLinkPTwo() {
      window.open('https://zfwzgl.www.gov.cn/exposure/jiucuo.html?site_code=bm38000007&url=http%3A%2F%2Fwww.cnipa.gov.cn%2F')
    },
  },
}
</script>